package com.ruoyi.mysystem.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 sys_goods
 * 
 * @author bai
 * @date 2024-01-23
 */
public class SysGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long goodsId;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long typeId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodDescription;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String picture;

    /** 商品状态（0=代审核,1=正常,2=已卖出,3=被驳回） */
    @Excel(name = "商品状态", readConverterExp = "0=代审核,1=正常,2=已卖出,3=被驳回")
    private String goodsStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updataBy;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updataTime;

    private SysType sysType;

    public SysType getSysType() {
        return sysType;
    }

    public void setSysType(SysType sysType) {
        this.sysType = sysType;
    }

    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodDescription(String goodDescription) 
    {
        this.goodDescription = goodDescription;
    }

    public String getGoodDescription() 
    {
        return goodDescription;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setGoodsStatus(String goodsStatus) 
    {
        this.goodsStatus = goodsStatus;
    }

    public String getGoodsStatus() 
    {
        return goodsStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdataBy(String updataBy) 
    {
        this.updataBy = updataBy;
    }

    public String getUpdataBy() 
    {
        return updataBy;
    }
    public void setUpdataTime(Date updataTime) 
    {
        this.updataTime = updataTime;
    }

    public Date getUpdataTime() 
    {
        return updataTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("typeId", getTypeId())
            .append("goodsName", getGoodsName())
            .append("goodDescription", getGoodDescription())
            .append("goodsPrice", getGoodsPrice())
            .append("picture", getPicture())
            .append("goodsStatus", getGoodsStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updataBy", getUpdataBy())
            .append("updataTime", getUpdataTime())
            .append("remark", getRemark())
            .append("sysType", getSysType())
            .toString();
    }
}
